package com.springframework.DI_t.map_DI;

import com.springframework.DI_t.map_DI.bean.Student;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class MapDIRun {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("com.springframework/DI_t/map_DI/bean.xml");
        Student bean = context.getBean("student", Student.class);
        System.out.println(bean.toString());
    }
}
